﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace SccmObjectMove
{
    class Program
    {
        
        static void Main(string[] args)
        {
            MoveObject mo;
            Log("Program start");

            //Hack: Insert Username/Password
            mo = new MoveObject("10.10.10.30");

            Log("MoveObject created");

            mo.StartMove("CEL00010", "CEL00012");

            Log("Program end");
            Console.WriteLine("Press a key to close windows.....");
            Console.ReadKey();
        }

        static void Log(string LogMessage, LogType Type = LogType.Info)
        {
            string Prefix;

            switch (Type)
            {
                case LogType.Info:
                    Console.ForegroundColor = ConsoleColor.White;
                    Prefix = "I : ";
                    break;
                case LogType.Warn:
                    Console.ForegroundColor = ConsoleColor.DarkYellow;
                    Prefix = "W : ";
                    break;
                case LogType.Error:
                    Console.ForegroundColor = ConsoleColor.DarkRed;
                    Prefix = "E : ";
                    break;
                default:
                    Console.ForegroundColor = ConsoleColor.White;
                    Prefix = "I : ";
                    break;
            }
            Console.WriteLine("{0}{1}\r\n", Prefix, LogMessage);
        }

        enum LogType
        {
            Info,
            Warn,
            Error
        }
    }
}
